package com.yang.system.domain.orgMng.emp;

import com.yang.system.common.framework.AuditableEntity;
import lombok.Getter;

import java.time.LocalDate;
import java.time.LocalDateTime;
@Getter
public class WorkExperience extends AuditableEntity {
    private Long id;
    private Long tenantId;
    private Long empId;

    private String company;
    private LocalDate startDate;
    private LocalDate endDate;
    private Long createdBy;
    private LocalDateTime lastUpdatedAt;
    private Long lastUpdatedBy;
    // 包级私有权限
    WorkExperience(Long tenantId, LocalDate startDate, LocalDate endDate
            ,LocalDateTime createdAt, Long createdBy) {
        super(createdAt, createdBy);
        this.tenantId = tenantId;
        this.startDate = startDate;
        this.endDate = endDate;
    }
    // 包级私有权限
    void setCompany(String company) {
        this.company = company;
    }
}
